﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using QuanLyRapChieuPhim.DAO;
using QuanLyRapChieuPhim.DTO;

namespace QuanLyRapChieuPhim.BUS
{
    class TinhTrangPhongChieuBUS
    {

        private TinhTrangPhongChieuDAO DAO = new TinhTrangPhongChieuDAO();

        public BindingList<TinhTrangPhongChieuDTO> GetList()
        {
            return DAO.GetList();
        }

        public BindingList<TinhTrangPhongChieuDTO> GetList_QL()
        {
            return DAO.GetList_QL();
        }

        public BindingList<TinhTrangPhongChieuDTO> GetList_QL_DaXoa()
        {
            return DAO.GetList_QL_DaXoa();
        }

        public BindingList<TinhTrangPhongChieuDTO> GetListLikeName_QL(string _Ten)
        {
            return DAO.GetListLikeName_QL(_Ten);
        }

        public BindingList<TinhTrangPhongChieuDTO> GetListLikeName_QL_DaXoa(string _Ten)
        {
            return DAO.GetListLikeName_QL_DaXoa(_Ten);
        }

        public int GetIDFromName(string _Ten)
        {
            return DAO.GetIDFromName(_Ten);
        }

        public TinhTrangPhongChieuDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }

        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }

        public bool UnDelete(int _Ma)
        {
            return DAO.UnDelete(_Ma);
        }

        public bool Add(TinhTrangPhongChieuDTO _TinhTrangPhongChieu)
        {
            return DAO.Add(_TinhTrangPhongChieu);
        }

        public bool Update(TinhTrangPhongChieuDTO _TinhTrangPhongChieu)
        {
            return DAO.Update(_TinhTrangPhongChieu);
        }

    }
}
